class TimeEntry < Entry
  has_one :time_value, :autosave => true
  
  def data
    if self.time_value != nil
      self.time_value.data
    else
      nil
    end
  end
  
  def data=(value)
    if self.time_value != nil
      self.time_value.data = value
    else
      self.time_value = TimeValue.new(:data => value)
    end
  end
  
end
